<?php
$conn = mysql_connect("127.0.0.1:3307","root","");
if ($conn) {
	mysql_select_db("hellophp", $conn);
	$sql = "select * from article where id=".$_GET['id'];
	// echo $sql;
	$result = mysql_query($sql);

	if($row = mysql_fetch_array($result)){
		$id = $row['id'];
		$title = $row['title'];
		$content = $row['content'];
	}
}
?>

<html>
<head><title><?php echo $title ?></title></head>
<body>
	<a href="list.php">list.php</a><br/>
	<h1><?php echo $title ?></h1>
	<?php echo $content ?>

</body>	
</html>